package Mydxc.com;

public class Mainl
{
	public static void main(String[] args)
	{
		System.out.println("==人生如梦==");
		/*接口 线程开始*/
		System.out.println("=接口开始=");
		for (int i = 0; i <4; i++)
		{
			Jk jk = new Jk();
			
			/*创建多线程，从参数是runnable接口
			 * 传入Rummable接口的实现类也没有问题*/
			if(i==0)
			{
				Thread th = new Thread(jk, "=三十而立 事未成=");
				/*线程开始*/
				th.start();
			}else if(i==1)
			{
				Thread th = new Thread(jk, "=时光传俊 已半生=");
				/*线程开始*/
				th.start();
			}else if(i==2)
			{
				Thread th = new Thread(jk, "=无家无业 归何处=");
				/*线程开始*/
				th.start();
			}else if(i==3)
			{
				Thread th = new Thread(jk, "=浑浑噩噩 惆怅中=");
				/*线程开始*/
				th.start();
			}
		}
		System.out.println("==梦幻人生==");
	}
}
